package com.edu.service.impl;

import com.edu.service.UserService;

import java.util.Date;

/*
 * @Author:mx
 * @Date:2025/11/10-9:48:05
 */
public class UserServiceProxy implements UserService{

    private UserService us;

    public UserServiceProxy(UserService us){
        this.us = us;
    }

    @Override
    public void addUser() {
        System.out.println("开始执行与:"+new Date());
        us.addUser();
    }

    @Override
    public void deleteUser() {
        System.out.println("开始执行与:"+new Date());
        us.deleteUser();
    }

    @Override
    public void updateUser() {
        System.out.println("开始执行与:"+new Date());
        us.updateUser();
    }

    @Override
    public void selectUser() {
        System.out.println("开始执行与:"+new Date());
        us.selectUser();
    }

    @Override
    public void selectUserByName() {
        System.out.println("开始执行与:"+new Date());
        us.selectUserByName();
    }

    @Override
    public void deleteAllUser() {

    }
}
